package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    long findOrderIsExistByDateAndSetmealIdAndmemberId(@Param("mid") Integer mid, @Param("orderDate") Date orderDate, @Param("setmealId") int setmealId);

    void add(Order order);

    Map findOrderInfoByOrderId(@Param("orderid") Integer orderid);

    List<Map> countSetMealCountsAndNames();
}
